package com.neuedu.entity;


import lombok.Data;
import lombok.ToString;
import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;
import java.util.Date;

@Data
//@ToString
public class User {

    private Integer userId;
    private String userName;
    private String gender;
    private Date birthday;
    private Integer status;


    public static void main(String[] args) throws InvocationTargetException, IllegalAccessException {

        User user = new User();
        user.setUserId(1);
        user.setUserName("asdfsadfs");
        user.setGender("aa");
        user.setBirthday(new Date());
        user.setStatus(11);



        Person person = new Person();


        BeanUtils.copyProperties(person,user);
        System.out.println(person);


    }



}
